package cn.hxzy.ssoserver.service;


import cn.hxzy.ssoserver.cacheAop.MyCacheable;
import cn.hxzy.ssoserver.entity.Application;
import cn.hxzy.ssoserver.repository.ApplicationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApplicationService {
    @Autowired
    private ApplicationRepository applicationRepository;

    @MyCacheable
    public Application findByName(String name) {
        return applicationRepository.findByName(name);
    }
}
